<?php
$pagePath = html::createCrudPath('managedPerson', $person, array('first_name', 'last_name'), 'id', 'listing');
$pagePath = array_merge(array('userSpace.menu-myAccount' => '/user/myAccount/display'), $pagePath);
html::printPath($pagePath);
$msg->printMessages();

$fb = new FormBuilder('person', $person);
$fb->setAction('/user/managedPerson/save');
personHelper::createPersonFormFields($fb, $idcardTypeOptions, $countryOptions);
$fb->write();
